package com.x.ant.manage;

import com.x.ant.dao.AreaDao;
import com.x.ant.model.City;
import com.x.ant.model.District;
import com.x.ant.model.Province;
import com.x.framework.manage.BaseManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaManage extends BaseManage {
    @Autowired
    private AreaDao areaDao;

    public List<Province> selectProvinceList(Province province) throws Exception {
        return areaDao.selectProvinceList(province);
    }

    public List<City> selectCityList(City city) throws Exception {
        return areaDao.selectCitytList(city);
    }

    public List<District> selectDistrictList(District district) throws Exception {
        return areaDao.selectDistrictList(district);
    }

}